package com.zclcs.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zclcs.model.CurrentUser;
import com.zclcs.model.DataRet;
import com.zclcs.model.Menu;
import com.zclcs.model.User;

/**
 * 用户service层
 * 
 * @author 周成龙
 *
 */
public interface UserService {

	User findByUsername(String username);

	DataRet<Object> changePassword(String newPassword, String oldPassword);

	Integer checkUsername(User user);

	CurrentUser getCurrentUser(User user);

	List<Menu> selectAccessMenus(User user);

	String[] selectUserPermissions(User user);

	IPage<User> selectUserPage(User user);

	void insertUser(User user);

	DataRet<Object> deleteUser(List<String> ids);

	void updateUser(User user);

	Boolean validUsername(User user);

	void resetPassword();
}
